package com.example.demo.mapper;

import com.example.demo.entity.User;
import com.example.demo.entity.Users;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Insert;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

/**
 * <p>
 * 用户表 Mapper 接口
 * </p>
 *
 * @author Mr.we
 * @since 2024-05-28
 */
@Mapper
public interface UsersMapper extends BaseMapper<User> {
    @Insert("insert into user(phone,password,create_time,update_time) " +
            "values(#{phone},#{password},now(),now())")
    boolean register(User user);
}
